<template>
	<view class="page" :style="themeColor">
		<view class="flex benben-position-layout flex flex-wrap align-center CancelAccount_flex_0"
			:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class='flex flex-wrap align-center justify-between flex-sub CancelAccount_fd0_0'>
				<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
					<text class='fu-iconfont2  CancelAccount_fd0_0_c0_c0' @tap.stop="handleJumpDiy" data-type="back"
						data-url="1">&#xE794;</text>
				</view>
				<view class='flex flex-wrap align-stretch justify-center flex-sub'>
					<text class='CancelAccount_fd0_0_c1_c0'>注销账号</text>
				</view>
				<view class='flex flex-wrap align-center CancelAccount_fd0_0_c2'>
				</view>
			</view>

		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
		<view class="loading_css" v-if="isShow">
			<u-loading size="36" color="#cd962d"></u-loading>
			<view class="loading_text">加载中</view>
		</view>
		
		<!---flex布局flex布局开始-->
		<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout CancelAccount_flex_1" v-else>
			<u-parse :html="dataDetails.rule"></u-parse>
		</view>

		<!---flex布局flex布局结束-->
		<view
			class="flex flex-direction flex-wrap align-center justify-center benben-position-layout flex CancelAccount_flex_2" @tap.stop="jumpFunc">
			<text class='CancelAccount_fd2_0'>填写注销申请</text>
		</view>
		<view :style="{height: '110rpx'}"></view>


	</view>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				"dataDetails": {
					"rule": "",
					"status": -1
				},
				"isShow": true
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.DataDetailsFunc();
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取说明
			async DataDetailsFunc() {
				//请求方法
				//数据验证
			
				let datadataDetails = await this.$api.post(global.apiUrls.post64abb7e463d5b, {
					
				});
				this.isShow = false;
				if (datadataDetails.data.code != 1) {
					this.$message.info(datadataDetails.data.msg);
					return
				}
				let infodataDetails = datadataDetails.data;
				this.dataDetails = infodataDetails.data;
			},
			//判断跳转
			jumpFunc() {
				if (this.dataDetails.status == '-1') {
					this.$urouter.redirectTo(`/pages/xtsz/logOutReason/logOutReason`);
				}
				if (this.dataDetails.status != '-1') {
					this.$urouter.redirectTo(`/pages/xtsz/result/result?type=1`);
				}
				return
			},
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto !important;
	}

	.CancelAccount_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.CancelAccount_fd0_0_c2 {
		width: 32rpx;
		height: 32rpx;
	}

	.CancelAccount_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
		line-height: 88rpx;
	}

	.CancelAccount_fd0_0_c0_c0 {
		font-size: 32rpx;
		font-weight: 500;
		color: #333;
		line-height: 88rpx;
	}

	.CancelAccount_fd0_0 {
		margin: 0rpx 32rpx 0rpx 32rpx;
	}

	.CancelAccount_flex_1 {
		padding: 32rpx 32rpx 0rpx 32rpx;
	}

	::v-deep .CancelAccount_fd1_0 {
		width: 100%;
	}

	.CancelAccount_flex_2 {
		background: var(--benbenbgColor1);
		width: 750rpx;
		height: 110rpx;
		overflow: hidden;
		z-index: 10;
		bottom: calc(0rpx + var(--window-bottom));
		background-size: 100% auto !important;
	}

	.CancelAccount_fd2_0 {
		color: #CD962D;
		font-size: 32rpx;
		font-weight: 500;
		line-height: 45rpx;
	}
</style>